<!DOCTYPE html>
<style>
.taskContainer{
	
}
.taskContainer .item{
	width: 150px;
	padding: 10px;
	margin: 10px auto;
	text-align: center;
	border: 2px solid #BBB;
	cursor: pointer;
}
</style>
<div ng-controller="guiderManagementCtrl">
	<div class="well">
		<div class="titleContainer">
			<div class="leftTitle">人员管理</div>
			<div class="rightOperate" ng-show="setTask_show">
				<button class="k-button k-state-default" ng-click="setTask()">设置任务</button>
			</div>
		</div>
		
		<div class="formContainer">
			<div class="form-horizontal">
				<div class="form-group">
					<div class="form-horizontal col-sm-4">
			            <div class="form-group">
			                <label class="col-sm-4 control-label">创建者</label>
			                <div class="col-sm-8">
			                	<input type="text" class="form-control" ng-model="search.creator_name"/>
			                </div>
			            </div>
			        </div>
			        <div class="form-horizontal col-sm-4">
			            <div class="form-group">
			                <label class="col-sm-4 control-label">人员名称</label>
			                <div class="col-sm-8">
			                	<input type="text" class="form-control" ng-model="search.personnel_name"/>
			                </div>
			            </div>
			        </div>
			        <div class="form-horizontal col-sm-4">
			            <div class="form-group">
			                <label class="col-sm-4 control-label">人员账号</label>
			                <div class="col-sm-8">
			                	<input type="text" class="form-control" ng-model="search.personnel_account" />
			                </div>
			            </div>
			        </div>
			        <div class="form-horizontal col-sm-4" ng-show="shopNames">
			            <div class="form-group">
			                <label class="col-sm-4 control-label">所属专卖店</label>
			                <div class="col-sm-8">
			                	<input type="text" class="form-control" ng-model="search.belong_commercial"/>
			                </div>
			            </div>
			        </div>
			        <div class="form-horizontal col-sm-4">
			            <div class="form-group">
			                <label class="col-sm-4 control-label">状态</label>
			                <div class="col-sm-8">
			                	<input type="text" id="guiderState"/>
			                </div>
			            </div>
			        </div>
			        <div class="form-horizontal col-sm-4" ng-show="gitTypes">
			            <div class="form-group">
			                <label class="col-sm-4 control-label">导购类型</label>
			                <div class="col-sm-8">
			                	<input type="text" id="guiderType"/>
			                </div>
			            </div>
			        </div>
			        <div class="form-horizontal col-sm-4">
			            <div class="form-group">
			                <label class="col-sm-4 control-label">创建时间（始）</label>
			                <div class="col-sm-8">
			                	<input type="text" id="startTime"/>
			                </div>
			            </div>
			        </div>
			        <div class="form-horizontal col-sm-4">
			            <div class="form-group">
			                <label class="col-sm-4 control-label">创建时间（止）</label>
			                <div class="col-sm-8">
			                	<input type="text" id="endTime"/>
			                </div>
			            </div>
			        </div>
			        <div class="form-horizontal col-sm-4" ng-show="organization">
			            <div class="form-group">
			                <label class="col-sm-4 control-label">组织编号</label>
			                <div class="col-sm-8">
			                	<input type="text" class="form-control" ng-model="search.organization_code" />
			                </div>
			            </div>
			        </div>
			        <div class="form-horizontal col-sm-4"  ng-show="department">
			            <div class="form-group">
			                <label class="col-sm-4 control-label">部门编号</label>
			                <div class="col-sm-8">
			                	<input type="text" class="form-control" ng-model="search.department_code" />
			                </div>
			            </div>
			        </div>
			       <div class="buttons-wrap clearBoth">
						<button class="k-button k-state-default" ng-click="search()">查询</button>
					</div>
				</div>
			</div>
		</div>
		
		<div id="operateButtonGroup" class="operateContainer">
			<button class="k-button k-state-default" ng-click="chooseAll('recordClass',true)">全选</button>
			<button class="k-button k-state-default" ng-click="chooseAll('recordClass',false)">取消</button>
			<button class="k-button k-state-default" ng-click="downloadTableData(1)">筛选导出</button>
			<button class="k-button k-state-default" ng-click="downloadTableData(2)">选中导出</button>
<!-- 			<span ng-show="addGuider_show">
				<button class="k-button k-state-default" ng-click="addGuider()">新建导购</button>
			</span> -->
		</div>
	
		<div class="tableList">
			<div kendo-grid="grid" k-options="gridOptions"></div>
		</div>
	</div>
	
	<div kendo-window="guiderWindow" k-title="'导购信息'" k-width="800" k-min-height="450" k-visible="false" k-modal="true">
		<div class="windowForm col-sm-12">
		    <div class="form-horizontal col-sm-5">
		         <div class="form-group">
		             <label class="col-sm-3 control-label">姓名</label>
		             <div class="col-sm-6">
		             	<input type="text" class="form-control hiddenInput noEdit"  ng-model="form1.name"  id="hiddenInput"/>
		             </div>
		         </div>
		    </div>
		    <div class="form-horizontal col-sm-6">
		         <div class="form-group">
		             <label class="col-sm-3 control-label">联系方式</label>
		             <div class="col-sm-6">
		             	<input type="text" class="form-control hiddenInput noEdit" ng-model="form1.phone" />
		             </div>
		         </div>
		    </div>
		    <div class="form-horizontal col-sm-5">
		         <div class="form-group">
		             <label class="col-sm-3 control-label">账号</label>
		             <div class="col-sm-6">
		             	<input type="text" class="form-control hiddenInput noEdit" ng-model="form1.user_name"  ng-blur ="checkAccount()"/>
		             </div>
		         </div>
		    </div>
<!-- 		    <div class="form-horizontal col-sm-6">
		         <div class="form-group">
		             <label class="col-sm-3 control-label">密码</label>
		             <div class="col-sm-4">
		             	<input type="text" class="form-control hiddenInput" ng-model="form1.user_pwd"/>
		             </div>
		             <div class="col-md-2" ng-show="passwordReset_show">
						<button class="k-button k-state-default" ng-click="resetPassword()">重置</button>
					</div>
		         </div>
		    </div> -->
 		    <div class="form-horizontal col-sm-5">
		         <div class="form-group">
		             <label class="col-sm-3 control-label">组织编号</label>
		             <div class="col-sm-6">
		             	<input type="text" class="form-control hiddenInput noEdit" ng-model="form1.zzh"/>
		             </div>
		         </div>
		    </div>
		    <div class="form-horizontal col-sm-5">
		         <div class="form-group">
		             <label class="col-sm-3 control-label">部门编号</label>
		             <div class="col-sm-6">
		             	<input type="text" class="form-control hiddenInput noEdit" ng-model="form1.bmh"/>
		             </div>
		         </div>
		    </div>
		   	<div class="form-horizontal col-sm-5">
		         <div class="form-group">
		             <label class="col-sm-3 control-label">微信号</label>
		             <div class="col-sm-6">
		             	<input type="text" class="form-control hiddenInput" ng-model="form1.weixinhao"/>
		             </div>
		         </div>
		    </div>
		    <div ng-show="shopBelong_show">
			    <div class="form-horizontal clearBoth">
			         <div class="form-group">
			             <label class="col-sm-2 control-label">所属专卖店</label>
			             <div class="col-sm-2 " >
			             	<input id="province"/>
			             </div>
			             <div class="col-sm-2 ">
			             	<input id="city"/>
			             </div>
			             <div class="col-sm-2">
			             	<input id="area"/>
			             </div>
			         </div>
			    </div>
			    <div class="form-horizontal clearBoth">
			         <div class="form-group">
			             <label class="col-sm-2 control-label"></label>
			             <div class="col-sm-8">
			             	<input type="text" class="form-control" id="belongStore"/>
			             </div>
			         </div>
			    </div>
		     </div>
		    <div class="form-horizontal clearBoth">
		         <div class="form-group">
		             <label class="col-sm-2 control-label">导购类型</label>
		             <div class="col-sm-8">
		             	<input type="text" id="guiderType_window"/>
		             </div>
		         </div>
		    </div>
<!-- 		    <div class="form-horizontal">
		         <div class="form-group">
		             <label class="col-sm-2 control-label">账号状态</label>
		             <div class="col-sm-8">
		             	<input type="text" id="accountState"/>
		             </div>
		         </div>
		    </div> -->
		    <div class="buttons-wrap clearBoth">
				<button class="k-button k-state-default" ng-click="addGuiderToServer()" ng-show='submits'>确定</button>
				<input type="hidden" id="method" value="">
			</div>
		</div>
	</div>
	
	
	<div kendo-window="settaskWindow" k-title="'设置任务'" k-width="650" k-min-height="150" k-visible="false" k-modal="true">
		<div class="windowForm col-sm-12">
			<div class="form-horizontal">
		         <div class="form-group">
		             <label class="col-sm-2 control-label">活动名称</label>
		             <div class="col-sm-7">
		             	<input type="text" class="form-control" id="acitivity_name"/>
		             </div>
		         </div>
		    </div>
		    <div class="form-horizontal">
		         <div class="form-group">
		             <label class="col-sm-2 control-label">开始时间</label>
		             <div class="col-sm-7">
		             	<input type="text"  class="form-control"   ng-model="task_starttime"  disabled="disabled"/>
		             </div>
		         </div>
		    </div>
		    <div class="form-horizontal">
		         <div class="form-group">
		             <label class="col-sm-2 control-label">结束时间</label>
		             <div class="col-sm-7">
		             	<input type="text"   class="form-control"   ng-model="task_endtime" disabled="disabled"/>
		             </div>
		         </div>
		    </div>
		    <div class="form-horizontal">
		         <div class="form-group">
		             <label class="col-sm-2 control-label">活动成单数</label>
		             <div class="col-sm-3">
		             	<input type="number" class="form-control" ng-model="form.activity_num"/>
		             </div>
		             <div class="col-sm-1 control-label textLeft stylePadidng">单</div>
		         </div>
		    </div>
		    <div class="form-horizontal">
		         <div class="form-group">
		             <label class="col-sm-2 control-label">邀请客户人数</label>
		             <div class="col-sm-3">
		             	<input type="number" class="form-control" ng-model="form.customer_num"/>
		             </div>
		             <div class="col-sm-1 control-label textLeft stylePadidng">人</div>
		         </div>
		    </div>
		    <div class="buttons-wrap clearBoth">
				<button class="k-button k-state-default" ng-click="submitsData()"  ng-show="addEditshow">确定</button>
				<button class="k-button k-state-default" ng-click="submitsData()"  ng-show="batchAddShow">确定</button>
			</div>
		</div>
	</div>	
	<div kendo-window="tipWindow" k-title="'提示'" k-width="300" k-min-height="100" k-visible="false" k-modal="true">
	    <div class="form-horizontal">
	         <div class="form-group">
	             <label class="col-sm-2 control-label">已经参与该活动的人员：</label>
	             <div class="col-sm-7">
	             	<input type="text"  class="form-control"   ng-model="alreadyStaff"  disabled="disabled"/>
	             </div>
	         </div>
	         <div class="form-group">
	             <label class="col-sm-2 control-label">未参与该活动的人员：</label>
	             <div class="col-sm-7">
	             	<input type="text"  class="form-control"   ng-model="noJoinStaff"  disabled="disabled"/>
	             </div>
	         </div>
	         <div class="form-group">
	             <label class="col-sm-12 control-label">是否重置？</label>
	         </div>
	        <div class="buttons-wrap clearBoth">
				<button class="k-button k-state-default" ng-click="submitsData()"  ng-show="addEditshow">是</button>
				<button class="k-button k-state-default" ng-click="submitsData()"  ng-show="batchAddShow">确定</button>
			</div>	         
	    </div>	
	</div>
</div>